package com.dlz.systemshop.mapper;


import com.dlz.systemshop.pojo.Admin;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface AdminMapper {
    @Select("SELECT * FROM `vueshop_admin` WHERE userName=#{userName}")
    Admin findAdminByUserName(String userName);

    @Update("UPDATE `vueshop_admin` SET `password`=#{passWord} WHERE `username`=#{userName}")
    void changePassword(String userName,String passWord);
}
